﻿var editor2 = ref.datagrid2.getColumns()[2].getEditor();
var editor7 = ref.datagrid7.getColumns()[4].getEditor();

editor2.getStore().removeAt(rowIndex);
editor7.getStore().removeAt(rowIndex);


Ext.each(ref.datagrid2.getStore().data.items, function (record) {
    if (e.get('Code') == record.get('VendorCode')) {
        record.set('VendorCode', null);
        record.set('_VendorCode', null);
    }
});
Ext.each(ref.datagrid7.getStore().data.items, function (record) {
    if (e.get('Code') == record.get('VendorCode')) {
        record.set('VendorCode', null);
        record.set('_VendorCode', null);
    }
});